package com.ruoyi.scenery.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.scenery.mapper.SceneryCameraMapper;
import com.ruoyi.scenery.domain.SceneryCamera;
import com.ruoyi.scenery.service.ISceneryCameraService;

/**
 * 摄像头管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-09
 */
@Service
public class SceneryCameraServiceImpl implements ISceneryCameraService 
{
    @Autowired
    private SceneryCameraMapper sceneryCameraMapper;

    /**
     * 查询摄像头管理
     * 
     * @param cameraId 摄像头管理主键
     * @return 摄像头管理
     */
    @Override
    public SceneryCamera selectSceneryCameraByCameraId(Long cameraId)
    {
        return sceneryCameraMapper.selectSceneryCameraByCameraId(cameraId);
    }

    /**
     * 查询摄像头管理列表
     * 
     * @param sceneryCamera 摄像头管理
     * @return 摄像头管理
     */
    @Override
    public List<SceneryCamera> selectSceneryCameraList(SceneryCamera sceneryCamera)
    {
        return sceneryCameraMapper.selectSceneryCameraList(sceneryCamera);
    }

    /**
     * 新增摄像头管理
     * 
     * @param sceneryCamera 摄像头管理
     * @return 结果
     */
    @Override
    public int insertSceneryCamera(SceneryCamera sceneryCamera)
    {
        return sceneryCameraMapper.insertSceneryCamera(sceneryCamera);
    }

    /**
     * 修改摄像头管理
     * 
     * @param sceneryCamera 摄像头管理
     * @return 结果
     */
    @Override
    public int updateSceneryCamera(SceneryCamera sceneryCamera)
    {
        return sceneryCameraMapper.updateSceneryCamera(sceneryCamera);
    }

    /**
     * 批量删除摄像头管理
     * 
     * @param cameraIds 需要删除的摄像头管理主键
     * @return 结果
     */
    @Override
    public int deleteSceneryCameraByCameraIds(Long[] cameraIds)
    {
        return sceneryCameraMapper.deleteSceneryCameraByCameraIds(cameraIds);
    }

    /**
     * 删除摄像头管理信息
     * 
     * @param cameraId 摄像头管理主键
     * @return 结果
     */
    @Override
    public int deleteSceneryCameraByCameraId(Long cameraId)
    {
        return sceneryCameraMapper.deleteSceneryCameraByCameraId(cameraId);
    }
}
